﻿using System;
using System.Collections.Generic;
using System.Text;
using WinFormsApp1.Interface;

namespace WinFormsApp1
{
    class Rectangle : Shape
    {
        private double a;
        private double b;

        public Rectangle()
        {
        }
        public void seta(double a)
        {
            this.a = a;
        }
        public void setb(double b)
        {
            this.b = b;
        }

        public Rectangle(double a, double b)
        {
            this.a = a;
            this.b = b;
        }

        public double CalculatedArea()
        {
            return a * b;
        }

        public bool isReasonable()
        {
            return (a > 0 && b > 0);
        }
    }
}
